﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MVC4CodeSamples.Controllers
{
    public class GreetingsController : Controller
    {
        //
        // GET: /Greetings/

        public ActionResult Index()
        {
            ViewBag.Message = "This is Test Message from My Greeting Controler";
            return View();

        }

        public ActionResult HelloWorld(int id=0)
        {
            ViewBag.Message = "Hello, This is greeting world , your id is " + id.ToString();
            return View("Index");

        }

    }
}
